///代驾model

class DrivingModel{
  String urlPath;//头像
  String sex;//性别
  int age;
  double drivingAge;
  int starNum;
  String phone;
  String name;
  String company;

  DrivingModel(
      {this.urlPath, this.sex,this.age,this.drivingAge,this.starNum,this.phone,this.name,this.company});

  DrivingModel.fromJson(Map<String, dynamic> json) {
    urlPath = json['urlPath'];
    sex = json['sex'];
    age=json['age'];
    drivingAge=json['drivingAge'];
    starNum=json['starNum'];
    phone=json['phone'];
    name=json['name'];
    company=json['company'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['urlPath'] = this.urlPath;
    data['sex'] = this.sex;
    data['age']=this.age;
    data['drivingAge']=this.drivingAge;
    data['starNum']=this.starNum;
    data['phone']=this.phone;
    data['name']=this.name;
    data['company']=this.company;
    return data;
  }
}